<script>
import Promise from './promise';
import '@/utils/myTestJs'
    const PromiseView = {
        name: 'PromiseView',
        created() {
            const test = new Promise((resolve) => {
                setTimeout(() => {
                    resolve('cqc')


                }, 2000);
            })
            test.then(res => {
                return res
            })

        },
        render() {
            return (
                <div>
                    cqc
                </div>
            )
        }
    }

    export default PromiseView
</script>